<template>
	<view>
		<view class="v_list">
			<view class="list" v-for="item in listarr">
				<view class="title_li">
					{{item.title}}
				</view>
				<view class="content_li onetext">
					 <view v-html="item.content">					 	
					 </view>
				</view>
			</view>
		</view>
		
		<!-- 底部导航 -->
		<footernav pagePath='myyuyue' v-if="isloginstate"></footernav>
	</view>
</template>

<script>
	import {noticelist} from '@/common/api/user.js'
	export default {
		data() {
			return {
				listarr:[],
				isloginstate:true,
			}
		},
		methods: {
			showlist(){				
				noticelist({}).then(res=>{
					console.log(res)
					if(res.data.code==200){
						this.listarr=res.data.data
					}
				})
			},
		},
		onLoad(event) {	
			this.showlist();
			if(!this.islogin()){
				this.isloginstate=false;
			}
		}
	}
</script>

<style>

</style>
